﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public class Chain
    {
        public List<Line> Lines { get; set; }

        public Chain()
        {
            Lines = new List<Line>();
        }

        public Chain(Line line)
        {
            Lines = new List<Line>() { line };
        }

        public void Add(Line line)
        {
            Lines.Add(line);
        }

        public override string ToString()
        {
            return String.Join("\r\n", Lines);
        }
    }
}
